package com.android.task4;

public abstract class TileSourceImpl extends TileSource {
	protected Projection mProjection;

	public Projection getProjection() {
		return mProjection;
	}

	@Override
	public Point coordinatesToPoint(final Coordinates coordinates,
			final int zoomLevel) {
		return mProjection.coordinatesToPoint(coordinates, zoomLevel);
	}

	@Override
	public Coordinates pointToCoordinates(final Point point, final int zoomLevel) {
		return mProjection.pointToCoordinates(point, zoomLevel);
	}

	@Override
	public int latToY(final double lat, final int zoomLevel) {
		return mProjection.latToY(lat, zoomLevel);
	}

	@Override
	public int lonToX(final double lon, final int zoomLevel) {
		return mProjection.lonToX(lon, zoomLevel);
	}
}

